#ifndef __CONTROLLAYER_H__
#define __CONTROLLAYER_H__

#include "GameGlobal.h"
#include "VisibleRect.h"
#include "RectLayout.h"

#include "SpriteBrick.h"

class ControlLayer: public CCLayer,DragEvent
{
private:
	CCSprite*					dragSprite;
	TSpriteBrickState			m_state;

public:
	virtual bool				init(); 
	virtual void				onEnter();

	virtual void				touchBeginHandler(CCEvent*);
	virtual void				touchMoveHandler(CCPoint touchPoint,CCEvent*);
	virtual void				touchCompleteHandler(CCEvent*);

	CREATE_FUNC(ControlLayer);
};

#endif